import service from './servixe'

let link=(url: string,method="GET",data={},params={})=>{
    return new Promise((resolve,reject)=>{
        service.request({
            url,
            method,
            data,
            params
        }).then((ok:any,)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
   };
   
   
   export default link